Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update datatypes to be compatible with numpy >= 1.20 #14

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

fnands
Copy link

@fnands fnands commented Jun 15, 2023

The datatypes np.bool, np.float and np.int have been deprecated since numpy 1.20.

This means running the code with a newer version will result in a crash.

This PR updates the datatypes.

The recommended updates for np.float and np.int are the native datatypes int and float, but as there were other occasions in the code where np.float32 and np.int32 were used, I updated them to these for the sake of consistency.

Change `np.float` to `np.float32`
Change `np.bool` to `bool`
Change `np.int` to `np.int32`
Change `np.int` to `np.int32`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant